import request from '@/utils/request'

// 订单收款列表
export function orderPayList(query) {
  return request({
      url: '/admin/order/pay/list',
      method: 'get',
      params: query
  });
}
// 去退款
export function orderPaySuccess(orderNo) {
    return request({
      url: '/admin/order/pay/refund/' + orderNo,
      method: 'put',
    })
}
//下单项目
export function projectList(query) {
    return request({
        url: '/admin/order/project/list',
        method: 'get',
        params: query
    });
}
// 订单退款列表
export function refundList(query) {
  return request({
      url: '/admin/order/refund/list',
      method: 'get',
      params: query
  });
}
// 子订单退款列表
export function refundChildList(orderNo) {
  return request({
      url: '/admin/order/refund/child/' + orderNo,
      method: 'get'
  });
}
// 订单退款列表—修改退款金额
export function refundEdit(data) {
  return request({
    url: '/admin/order/refund/edit',
    method: 'post',
    data: data
  })
}
// 订单退款列表—计算退款金额
export function refundCalculate(query) {
  return request({
    url: '/admin/order/refund/calculate',
    method: 'get',
    params: query
  })
}
// 订单退款列表—退款
export function refundPass(data) {
  return request({
    url: '/admin/order/refund/pass',
    method: 'post',
    data: data
  })
}
// 充值收款列表
export function chongzhilist(query) {
  return request({
      url: '/walletchange/walletchange/chongzhilist',
      method: 'get',
      params: query
  });
}
// 账号余额退款列表
export function userRefundList(query) {
  return request({
      url: '/walletchange/walletchange/yonghutuikuan',
      method: 'get',
      params: query
  });
}
// 账号余额退款列表——退款
export function tuikuan(query) {
  return request({
      url: '/walletchange/walletchange/tuikuan',
      method: 'get',
      params: query
  });
}
// 技师分佣提现列表
export function jstixianlist(query) {
  return request({
      url: '/walletchange/walletchange/jstixianlist',
      method: 'get',
      params: query
  });
}
// 技师分佣提现列表——打款
export function dakuan(query) {
  return request({
      url: '/walletchange/walletchange/dakuan',
      method: 'get',
      params: query
  });
}
// 退款订单详情
export function refundDetail(query) {
  return request({
      url: '/admin/order/refund/info',
      method: 'get',
      params: query
  });
}
